package org.example.datasorce_test.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;
import javax.xml.crypto.Data;
@RestController
public class helloController {
    @Autowired
    private DataSource DataSource;

    @GetMapping("hello")
    public String hello(){
        System.out.println("dataSource="+ DataSource);
        return "hello";
    }

}
